package com.example.qmt.advertising;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.example.qmt.R;

public class AdvertisingAdapter extends RecyclerView.Adapter<AdvertisingAdapter.AdvertisingViewHolder> {

    private Context context;

    public AdvertisingAdapter(Context context){
        this.context = context;
    }

    @NonNull
    @Override
    public AdvertisingAdapter.AdvertisingViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new AdvertisingViewHolder(LayoutInflater.from(context).inflate(R.layout.advertising_item,parent,false));
    }

    @Override
    public void onBindViewHolder(@NonNull AdvertisingAdapter.AdvertisingViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 30;
    }

    class AdvertisingViewHolder extends RecyclerView.ViewHolder{

        public AdvertisingViewHolder(@NonNull View itemView) {
            super(itemView);
        }
    }
}
